from selenium import webdriver
from selenium.webdriver.common.by import By

options = webdriver.ChromeOptions()
options.debugger_address = '127.0.0.1:9222'
driver = webdriver.Chrome(options=options)
driver.implicitly_wait(10)
driver.get("https://www.baidu.com")

#1 locator input box
element = driver.find_element(By.ID, 'kw')
#2 type in keywords
element.send_keys("selenium")
#3 click search button
element = driver.find_element(By.ID, 'su')
element.click()

